package com.muyun.data.modeler.api.authentication.controller;

import com.muyun.data.modeler.api.authentication.request.LoginRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户登录，登出，注册等
 *
 * @author muyun12
 * @date 2020-12-19 10:31:30
 * @since
 */
@Api(value = "认证授权", tags = "认证授权")
@RestController
public class UserAuthController {


    @ApiOperation(value = "登录接口")
    @PostMapping("/login")
    public void login(@RequestBody LoginRequest loginRequest){
        System.out.println(loginRequest.getUsername());
        System.out.println(loginRequest.getPassword());
    }

}
